'use strict';
(function() {

	angular.getUrlParam = function(url) {
        var obj = new Object();
        var string = url != null ? url : location.search;
        if (string.indexOf("?") != -1) {
            var string = string.substr(string.indexOf("?") + 1);
            var strs = string.split("&");
            for (var i = 0; i < strs.length; i++) {
                var tempArr = strs[i].split("=");
                obj[tempArr[0]] = tempArr[1];
            }
        }
        return obj;
    };
    
    var url = document.location.pathname.replace("/log/index.html", "");
    url = url + "/";

    ngApp.constant("AppConfigConstant", {
    	BASE_PATH : url,
    	APP_BASE_PATH : url + "log/"
    });

})();
